(function () {
    'use strict';
    angular.module('module.business').config(configure);
    configure.$inject = ['$stateProvider'];

    function configure($stateProvider) {
        $stateProvider
            .state('home.supervision_dependence', {
                    url: 'supervision_dependence',
                    views: {
                        'content@': {
                            templateUrl: 'app/module/business/supervision/dependence/supervision-dependence.view.html',
                            controller: 'SupervisionDependenceController',
                            controllerAs: 'supervisionDependence',
                            resolve: {
                                deps: lazyLoadSupervisionDependence
                            }
                        }
                    },
                    data: {
                        pageTitle: '检查依据',
                        requiresLogin: false
                    }
                }
            );
    }

    lazyLoadSupervisionDependence.$inject = ['$ocLazyLoad'];

    function lazyLoadSupervisionDependence($ocLazyLoad) {
        return $ocLazyLoad.load({
            name: 'module.business',
            insertBefore: '#ng_load_plugins_before', // load the above css files before a LINK element with this ID. Dynamic CSS files must be loaded between core and theme css files
            files: [
                'app/module/business/supervision/dependence/supervision-dependence.controller.js'

            ]
        });
    }
})();